<%--
  - Author		:	이 영호
  --%>
<%@ page language="java" %>
<%@ page contentType="text/html; charset=utf-8" %>
<%@ page pageEncoding="utf-8" %>
<%@page import="org.springframework.web.util.UrlPathHelper"%>
<%@ include file="/WEB-INF/pages/includes/taglibs.jspf" %>
<%
	UrlPathHelper urlPathHelper = new UrlPathHelper();
	String callURL = urlPathHelper.getOriginatingRequestUri(request);
	request.setAttribute("callURL", callURL);
%>
<c:choose>
	<c:when test="${sessionScope.userRole eq 'ROLE_USER'}">
		<div class="leftMenuWrap">
			<ul class="menu2Wrap sub2mypage" style="<c:if test="${! (fn:contains(callURL, '/mypage/verification') || fn:contains(callURL, '/mypage/userInfo'))}">display: none;</c:if>">
				<li class="leftMenuTitle"><img src="<c:url value="${dirImages}/lnb_tit_01.gif" />" title="My Page" alt="My Page"></li>
				<li class="menu <c:if test="${fn:contains(callURL, '/mypage/verification')}">selMenu</c:if>" onclick="javascript:window.location.href='<c:url value="/mypage/verification.do" />';">나의 검증/문의</li>
				<li class="menu <c:if test="${fn:contains(callURL, '/mypage/userInfo')}">selMenu</c:if>" onclick="javascript:window.location.href='<c:url value="/mypage/userInfo.do" />';">회원정보 수정</li>
				<li class="menuEnd">&nbsp;</li>
			</ul>
			<ul class="menu2Wrap sub2request" style="<c:if test="${! (fn:contains(callURL, '/request/applet') || fn:contains(callURL, '/request/pay'))}">display: none;</c:if>">
				<li class="leftMenuTitle"><img src="<c:url value="${dirImages}/lnb_tit_02.gif" />" title="검증 신청" alt="검증 신청"></li>
				<li class="menu <c:if test="${fn:contains(callURL, '/request/applet')}">selMenu</c:if>" onclick="javascript:window.location.href='<c:url value="/request/applet.do" />';">애플릿 검증신청</li>
				<li class="menu <c:if test="${fn:contains(callURL, '/request/pay')}">selMenu</c:if>" onclick="javascript:window.location.href='<c:url value="/request/pay.do" />';">결제기 검증신청</li>
				<li class="menuEnd">&nbsp;</li>
			</ul>
			<ul class="menu2Wrap sub2result" style="<c:if test="${! (fn:contains(callURL, '/result/list') || fn:contains(callURL, '/result/listDetail') || fn:contains(callURL, '/result/detail'))}">display: none;</c:if>">
				<li class="leftMenuTitle"><img src="<c:url value="${dirImages}/lnb_tit_03.gif" />" title="검증 결과 현황" alt="검증 결과 현황"></li>
				<li class="menu <c:if test="${fn:contains(callURL, '/result/list') || fn:contains(callURL, '/result/listDetail') || fn:contains(callURL, '/result/detail')}">selMenu</c:if>" onclick="javascript:window.location.href='<c:url value="/result/list.do" />';">검증 결과 조회</li>
				<li class="menuEnd">&nbsp;</li>
			</ul>
			<ul class="menu2Wrap sub2board" style="<c:if test="${! (fn:contains(callURL, '/board/notice') || fn:contains(callURL, '/board/qna') || fn:contains(callURL, '/board/file')  || fn:contains(callURL, '/board/form') || fn:contains(callURL, '/board/detail'))}">display: none;</c:if>">
				<li class="leftMenuTitle"><img src="<c:url value="${dirImages}/lnb_tit_04.gif" />" title="고객지원" alt="고객지원"></li>
				<li class="menu <c:if test="${fn:contains(callURL, '/board/notice') || ((fn:contains(callURL, '/board/form') || fn:contains(callURL, '/board/detail')) && param.boardType eq 'notice')}">selMenu</c:if>" onclick="javascript:window.location.href='<c:url value="/board/notice.do" />';">공지사항</li>
				<li class="menu <c:if test="${fn:contains(callURL, '/board/qna')  || ((fn:contains(callURL, '/board/form') || fn:contains(callURL, '/board/detail')) && param.boardType eq 'qna')}">selMenu</c:if>" onclick="javascript:window.location.href='<c:url value="/board/qna.do" />';">문의하기</li>
				<li class="menu <c:if test="${fn:contains(callURL, '/board/file') || ((fn:contains(callURL, '/board/form') || fn:contains(callURL, '/board/detail')) && param.boardType eq 'file')}">selMenu</c:if>" onclick="javascript:window.location.href='<c:url value="/board/file.do" />';">자 료 실</li>
				<li class="menuEnd">&nbsp;</li>
			</ul>
		</div>
	</c:when>
	<c:when test="${sessionScope.userRole eq 'ROLE_TESTER'}">
		<div class="leftMenuWrap">
			<ul class="menu2Wrap sub2mypage" style="<c:if test="${! (fn:contains(callURL, '/tester/'))}">display: none;</c:if>">
				<li class="leftMenuTitle"><img src="<c:url value="${dirImages}/lnb_tit_05.gif" />" title="체험단" alt="체험단"></li>
				<li class="menu <c:if test="${fn:contains(callURL, '/tester/notice')}">selMenu</c:if>" onclick="javascript:window.location.href='<c:url value="/tester/notice.do" />';">공지사항</li>
				<li class="menu <c:if test="${fn:contains(callURL, '/tester/form.')}">selMenu</c:if>" onclick="javascript:window.location.href='<c:url value="/tester/form.do" />';">테스트결과등록</li>
				<li class="menu <c:if test="${fn:contains(callURL, '/tester/qna') or fn:contains(callURL, '/tester/detailQna') or fn:contains(callURL, '/tester/formQna')}">selMenu</c:if>" onclick="javascript:window.location.href='<c:url value="/tester/qna.do" />';">문의하기(체험단)</li>
				<li class="menuEnd">&nbsp;</li>
			</ul>
		</div>
	</c:when>
	<c:when test="${sessionScope.userRole eq 'ROLE_ADMIN'}">
		<div class="leftMenuWrap">
			<ul class="menu2Wrap sub2info" style="<c:if test="${! (fn:contains(callURL, '/backoffice/user') || fn:contains(callURL, '/backoffice/device') || fn:contains(callURL, '/backoffice/pay'))}">display: none;</c:if>">
				<li class="leftMenuTitle"><img src="<c:url value="${dirImages}/lnb_tit_07.gif" />" title="My Page" alt="My Page"></li>
				<li class="menu <c:if test="${fn:contains(callURL, '/backoffice/user')}">selMenu</c:if>" onclick="javascript:window.location.href='<c:url value="/backoffice/user/list.do" />';">회원 관리</li>
				<li class="menu <c:if test="${fn:contains(callURL, '/backoffice/device')}">selMenu</c:if>" onclick="javascript:window.location.href='<c:url value="/backoffice/device/form.do" />';">단말기 관리</li>
				<li class="menu <c:if test="${fn:contains(callURL, '/backoffice/pay')}">selMenu</c:if>" onclick="javascript:window.location.href='<c:url value="/backoffice/pay/form.do" />';">결제기 관리</li>
				<li class="menuEnd">&nbsp;</li>
			</ul>
			<ul class="menu2Wrap sub2request" style="<c:if test="${! (fn:contains(callURL, '/backoffice/request/applet') || fn:contains(callURL, '/backoffice/request/pay'))}">display: none;</c:if>">
				<li class="leftMenuTitle"><img src="<c:url value="${dirImages}/lnb_tit_02.gif" />" title="검증 신청" alt="검증 신청"></li>
				<li class="menu <c:if test="${fn:contains(callURL, '/backoffice/request/applet')}">selMenu</c:if>" onclick="javascript:window.location.href='<c:url value="/backoffice/request/applet.do" />';">애플릿 검증신청</li>
				<li class="menu <c:if test="${fn:contains(callURL, '/backoffice/request/pay')}">selMenu</c:if>" onclick="javascript:window.location.href='<c:url value="/backoffice/request/pay.do" />';">결제기 검증신청</li>
				<li class="menuEnd">&nbsp;</li>
			</ul>
			<ul class="menu2Wrap sub2result" style="<c:if test="${! (fn:contains(callURL, '/backoffice/result/list') || fn:contains(callURL, '/backoffice/result/listDetail') || fn:contains(callURL, '/backoffice/result/detail'))}">display: none;</c:if>">
				<li class="leftMenuTitle"><img src="<c:url value="${dirImages}/lnb_tit_03.gif" />" title="검증 결과 현황" alt="검증 결과 현황"></li>
				<li class="menu <c:if test="${fn:contains(callURL, '/backoffice/result/list') || fn:contains(callURL, '/backoffice/result/listDetail') || fn:contains(callURL, '/backoffice/result/detail')}">selMenu</c:if>" onclick="javascript:window.location.href='<c:url value="/backoffice/result/list.do" />';">검증 결과 조회</li>
				<li class="menuEnd">&nbsp;</li>
			</ul>
			<ul class="menu2Wrap sub2board" style="<c:if test="${! (fn:contains(callURL, '/backoffice/board/') || fn:contains(callURL, '/backoffice/board/') || fn:contains(callURL, '/backoffice/board/')  || fn:contains(callURL, '/backoffice/board/') || fn:contains(callURL, '/backoffice/board/'))}">display: none;</c:if>">
				<li class="leftMenuTitle"><img src="<c:url value="${dirImages}/lnb_tit_04.gif" />" title="고객지원" alt="고객지원"></li>
				<li class="menu <c:if test="${fn:contains(callURL, '/backoffice/board/notice') || ((fn:contains(callURL, '/backoffice/board/form') || fn:contains(callURL, '/backoffice/board/detail')) && param.boardType eq 'notice')}">selMenu</c:if>" onclick="javascript:window.location.href='<c:url value="/backoffice/board/notice.do" />';">공지사항</li>
				<li class="menu <c:if test="${fn:contains(callURL, '/backoffice/board/qna') || ((fn:contains(callURL, '/backoffice/board/form') || fn:contains(callURL, '/backoffice/board/detail')) && param.boardType eq 'qna')}">selMenu</c:if>" onclick="javascript:window.location.href='<c:url value="/backoffice/board/qna.do" />';">문의하기</li>
				<li class="menu <c:if test="${fn:contains(callURL, '/backoffice/board/file') || ((fn:contains(callURL, '/backoffice/board/form') || fn:contains(callURL, '/backoffice/board/detail')) && param.boardType eq 'file')}">selMenu</c:if>" onclick="javascript:window.location.href='<c:url value="/backoffice/board/file.do" />';">자 료 실</li>
				<li class="menu <c:if test="${fn:contains(callURL, '/backoffice/board/testerNotice') || ((fn:contains(callURL, '/backoffice/board/form') || fn:contains(callURL, '/backoffice/board/detail')) && param.boardType eq 'testerNotice')}">selMenu</c:if>" onclick="javascript:window.location.href='<c:url value="/backoffice/board/testerNotice.do" />';">공지사항(체험단)</li>
				<li class="menu <c:if test="${fn:contains(callURL, '/backoffice/board/testerResult') || ((fn:contains(callURL, '/backoffice/board/form') || fn:contains(callURL, '/backoffice/board/detail')) && param.boardType eq 'testerResult')}">selMenu</c:if>" onclick="javascript:window.location.href='<c:url value="/backoffice/board/testerResult.do" />';">테스트결과(체험단)</li>
				<li class="menu <c:if test="${fn:contains(callURL, '/backoffice/board/testerQna') || ((fn:contains(callURL, '/backoffice/board/form') || fn:contains(callURL, '/backoffice/board/detail')) && param.boardType eq 'testerQna')}">selMenu</c:if>" onclick="javascript:window.location.href='<c:url value="/backoffice/board/testerQna.do" />';">문의하기(체험단)</li>
				<li class="menuEnd">&nbsp;</li>
			</ul>
		</div>
	</c:when>
</c:choose>
		